<?php require '../../includes/common.php';
if($conf['user_kai']==1)sysmsg($conf['user_kail']);
?><!--///////////////////////////////////////////////////////////
//                         _ooOoo_                           //
//                        o8888888o                          //
//                        88" . "88                          //
//                        (| ^_^ |)                          //
//                        O\  =  /O                          //
//                     ____/`---'\____                       //
//                   .'  \\|     |//  `.                     //
//                  /  \\|||  :  |||//  \                    //
//                 /  _||||| -:- |||||-  \                   //
//                 |   | \\\  -  /// |   |                   //
//                 | \_|  ''\---/''  |   |                   //
//                 \  .-\__  `-`  ___/-. /                   //
//               ___`. .'  /--.--\  `. . ___                 //
//             ."" '<  `.___\_<|>_/___.'  >'"".              //
//           | | :  `- \`.;`\ _ /`;.`/ - ` : | |             //
//           \  \ `-.   \_ __\ /__ _/   .-` /  /             //
//     ========`-.____`-.___\_____/___.-`____.-'========     //
//                          `=---='                          //
//     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     //
//          佛祖保佑         永无BUG         永不修改        //
///////////////////////////////////////////////////////////////-->
<!--余生网络信息 酷享云支付系统 作者：余生 QQ：2316803263 盗版必究 购买正版请联系作者 盗版有风险-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=yes">
<link REL="SHORTCUT ICON" HREF="favicon.ico">
<title><?php echo $conf['web_name']?>-开发者中心-API开发文档</title>
<meta name="keywords" content="<?php echo $conf['web_keyword']?>" />
<meta name="description" content="<?php echo $conf['web_desc']?>" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" type="text/css" href="/template/moban1/kuyun/css/kuxyzhifu.css">
<!--<link rel="stylesheet" type="text/css" href="css/kucms.css">-->
<link rel="stylesheet" type="text/css" href="/template/moban1/kuyun/css/yus.css">
<link rel="stylesheet" href="/template/moban1/kuyun/css/2316803263.css">
<link rel="stylesheet" href="/template/moban1/kuyun/css/kuxiang
.css">
<link rel="stylesheet" href="/template/moban1/kuyun/css/style.css">
<link rel="stylesheet" href="/template/moban1/kuyun/css/kefu.css">

 
<link rel="stylesheet" href="/template/moban1/kuyun/doc/css/qietu.css">
<link rel="stylesheet" href="/template/moban1/kuyun/doc/css/animate.min.css">
<link rel="stylesheet" href="/template/moban1/kuyun/doc/font/iconfont.css">
<link rel="stylesheet" href="/template/moban1/kuyun/doc/css/style.css">
<link rel="stylesheet" href="/template/moban1/kuyun/doc/css/style_tr.css">
<link rel="stylesheet" href="/template/moban1/kuyun/doc/css/responsive.css">
<style>
	.docs-bd div.pp{margin-bottom: 8px;word-break: break-all;}
	.docs-bd th{  border:#dcdcdc solid 1px;  padding: 5px 10px;  font-weight: bold;  }
	.docs-bd table{  border-collapse:collapse;  width:100%;}
	.docs-bd table tr td{  border:#dcdcdc solid 1px;  padding: 5px 10px;  }
	.docs-sub{padding: 10px 0;}
	.docs-nav li a{height:40px;line-height:40px;font-size: 18px;}
</style>


<style>
  .jyb-banner-box {
      width: 100%;
      height: 500px;
      position: absolute;
      top:0;
      opacity:0.7;
      overflow: hidden;
  }
  .jyb-banner-box >.jyb-banner-bg {
      position: absolute;
      top: 0;
  }

  .swiper-container{
	height:auto;
}
.header a {
        color: #555;
}
.header .nav li{
padding:0;
}
.log-b
{

background:none;
color:#555;
}

.lxfsdd p{
	color:#fff;
	}

 </style>
 <!--<script>function DM(e){if(!ns){if(event.button>1)window.external.addFavorite('http://www.aaa.com/,' )}else{if(e.which>1)return false}}ns=navigator.appName=="Netscape";if(ns)document.captureEvents(Event.MOUSEMOVE|Event.MOUSEDOWN);document.onmousemove=DM;document.onmousedown=DM;</script>
<script language="javascript">function click() {if (event.button==2) {alert('免签作者余生提示，请使用左键本站禁止右键！') }}document.onmousedown=click</script>
<script>
window.onload=function(){
        document.onkeydown=function(){
            var e=window.event||arguments[0];
            if(e.keyCode==123){
                alert("欢迎来到酷享免签支付！，有什么需要帮忙😊的话，请联系客服！");
                return false;
            }else if((e.ctrlKey)&&(e.shiftKey)&&(e.keyCode==73)){
                alert("欢迎来到酷享免签支付！，有什么需要帮忙😊的话，请联系客服！");
                return false;
            }else if((e.ctrlKey)&&(e.keyCode==85)){//追加


　　　　　　　　return false;
　　　　　　　}
        };
        document.oncontextmenu=function(){
            alert("欢迎来到酷享免签支付！，有什么需要帮忙😊的话，请联系客服！");
            return false;
        }
    }
</script>-->

</head>
<body>
 </script>
</head>
 
<header class="header clearfix">
<div class="container">
<h1 class="pull-left">
<a class="header-logo" href="/">
<img class="header-logo-img" src="/template/moban1/kuyun/image/logo.png" alt="桔子付" />
</a>
</h1>
<nav class="nav pull-right">
<ul class="text-center menuul clearfix">
<li class="nav-item">
<a class="nav-item-a" href="/">首页</a>
</li>
 <li class="nav-item">
<a class="nav-item-a" href="/index/about/">关于我们</a>
</li>

<li class="nav-item">
<a class="nav-item-a" href="/index/doc">接入文档</a>
</li>

<li class="nav-item">
<a class="nav-item-a" href="/index/copyright/">免责条款</a>
</li>
<li class="nav-item log-li">
<a class="log-b" href="../../user/login.php">登录</a>
<a class="log-b" href="../../user/reg.php">注册</a>
</li>
</ul>
</nav>
<a class="header-more pull-right" href="javascript:void(0);"><i></i></a>
</div>
</header>


<div class="swiper-container">

<body>
<div class="banner">
	<div class="wrapper">
		<h2>API开发文档</h2>
		<p>-API documentation -</p>
	</div>
</div>
<div class="wrapper">
	<div class="docs">
		<div class="docs-nav"  >
			<ul>
				<li class="on"><a href="javascript:go(1)" id="nav_1">支付接口介绍</a></li>
				<li><a href="javascript:go(2)" id="nav_2">接口申请方式</a></li>
				<li><a href="javascript:go(3)" id="nav_3">协议规则</a></li>
				<li><a href="javascript:go(4)" id="nav_4">[API]创建商户</a></li>
				<li><a href="javascript:go(5)" id="nav_5">[API]查询商户信息</a></li>
				<li><a href="javascript:go(6)" id="nav_6">[API]修改结算账号</a></li>
				<li><a href="javascript:go(7)" id="nav_7">[API]查询结算记录</a></li>
				<li><a href="javascript:go(8)" id="nav_8">[API]查询单个订单</a></li>
				<li><a href="javascript:go(9)" id="nav_9">[API]批量查询订单</a></li>
				<li><a href="javascript:go(10)" id="nav_10">[API]二维码下单接口</a></li>
				<li><a href="javascript:go(11)" id="nav_11">发起支付请求</a></li>
				<li><a href="javascript:go(12)" id="nav_12">支付结果通知</a></li>
				<li><a href="javascript:go(13)" id="nav_13">SDK下载</a></li>
			
			</ul>
		</div>
		<div class="docs-main">
			<div class="docs-mod" id="nav_1">
				<div class="docs-hd">
					API开发文档简介
				</div>
				<div class="docs-bd">
					本文阅读对象：技术架构师、研发工程师、测试工程师、系统运维工程师。通过本文档，商户可了解API系统接入的技术、接入的产品业务、接入的流程、接入规范等信息。以便于商户顺利完成接入工作。
				</div>
			</div>
			<div class="docs-mod" id="nav_2">
				<div class="docs-hd">
					接口申请方式
				</div>
				<div class="docs-bd">
					<div class="pp">共有两种接口模式：</div>
<div class="pp">（一）普通支付商户<br/>可以获得一个支付商户，目前认证费是5元。可在线申请：<a target="_blank" href="http://<?php echo $conf['local_domain']?>/user/reg.php">接入申请</a>，在线申请之后即可登录使用！</div>
<div class="pp">（二）合作支付商户<br/>获得一个合作者身份TOKEN，可以集成到你开发的程序里面，通过接口无限申请普通支付商户，并且每个普通支付商户单独结算，相对独立。申请需要进行企业或开发者资质认证，请联系人工申请QQ<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $conf['web_qq'];?>&amp;site=qq&amp;menu=yes"><?php echo $conf['web_qq'];?></a>，申请之后会将合作者身份TOKEN给你！（内测暂不开放）</div>
				</div>
			</div>
			<div class="docs-mod" id="nav_3">
				<div class="docs-hd">
					协议规则
				</div>
				<div class="docs-bd">

					<div class="pp">传输方式：HTTPS</div>
					<div class="pp">数据格式：JSON</div>
					<div class="pp">签名算法：MD5</div>
					<div class="pp">字符编码：UTF-8</div>
                     



					
				</div>
			</div>
			<div class="docs-mod" id="nav_4">
				<div class="docs-hd">
					[API]创建商户
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						API权限：该API只能合作支付商户调用
					</div>
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/api.php?act=apply&amp;token={合作者身份TOKEN}&amp;url={商户域名}
					</div>
					
					<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>操作类型</td><td>act</td><td>是</td><td>String</td><td>apply</td><td>此API固定值</td></tr>
  <tr><td>合作者TOKEN</td><td>token</td><td>是</td><td>String</td><td>9ddab6c4f2c87ce442de371b04f36d68</td><td>需要事先申请</td></tr>
  <tr><td>商户域名</td><td>url</td><td>是</td><td>String</td><td><?php echo $conf['local_domain']?></td><td></td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>返回信息</td><td>msg</td><td>String</td><td>添加支付商户成功！</td><td></td></tr>
  <tr><td>商户ID</td><td>pid</td><td>Int</td><td>1001</td><td>所创建的商户ID</td></tr>
  <tr><td>商户密钥</td><td>key</td><td>String(32)</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td><td>所创建的商户密钥</td></tr>
  <tr><td>商户类型</td><td>type</td><td>Int</td><td>1</td><td>此值暂无用</td></tr>
  </tbody>
</table>
				 </div>
			</div>
			<div class="docs-mod" id="nav_5">
				<div class="docs-hd">
					[API]查询商户信息与结算规则
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/api.php?act=query&amp;pid={商户ID}&amp;key={商户密钥}
					</div>
					<div class="docs-sub">
						请求参数说明：
					</div>
					<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>操作类型</td><td>act</td><td>是</td><td>String</td><td>query</td><td>此API固定值</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>商户密钥</td><td>key</td><td>是</td><td>String</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td><td></td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>Int</td><td>1001</td><td>所创建的商户ID</td></tr>
  <tr><td>商户密钥</td><td>key</td><td>String(32)</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td><td>所创建的商户密钥</td></tr>
  <tr><td>商户类型</td><td>type</td><td>Int</td><td>1</td><td>此值暂无用</td></tr>
  <tr><td>商户状态</td><td>active</td><td>Int</td><td>1</td><td>1为正常，0为封禁</td></tr>
  <tr><td>商户QQ</td><td>qq</td><td>String</td><td>1</td><td>商户后台填写的QQ号码</td></tr>
  <tr><td>商户余额</td><td>money</td><td>String</td><td>0.00</td><td>商户所拥有的余额</td></tr>
  <tr><td>结算账号</td><td>account</td><td>String</td><td>pay@v8jisu.cn</td><td>结算的支付宝账号</td></tr>
  <tr><td>结算姓名</td><td>username</td><td>String</td><td>张三</td><td>结算的支付宝姓名</td></tr>
  <tr><td>满多少自动结算</td><td>settle_money</td><td>String</td><td>30</td><td>此值为系统预定义</td></tr>
  <tr><td>手动结算手续费</td><td>settle_fee</td><td>String</td><td>1</td><td>此值为系统预定义</td></tr>
  <tr><td>每笔订单分成比例</td><td>money_rate</td><td>String</td><td>98</td><td>此值为系统预定义</td></tr>
  </tbody>
</table>
				 </div>
			</div>
		
			<div class="docs-mod" id="nav_6">
				<div class="docs-hd">
					API]修改结算账号
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/api.php?act=change&amp;pid={商户ID}&amp;key={商户密钥}&amp;account={结算账号}&amp;username={结算姓名}
					</div>
					<div class="docs-sub">
						注：为了保障资金安全，已经设置结算账号的无法再进行修改，如需修改请联系客服
					</div>
					<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>操作类型</td><td>act</td><td>是</td><td>String</td><td>change</td><td>此API固定值</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>商户密钥</td><td>key</td><td>是</td><td>String</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td><td></td></tr>
  <tr><td>结算账号</td><td>account</td><td>是</td><td>String</td><td>pay@v8jisu.cn</td><td>结算的支付宝账号</td></tr>
  <tr><td>结算姓名</td><td>username</td><td>是</td><td>String</td><td>张三</td><td>结算的支付宝姓名</td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>返回信息</td><td>msg</td><td>String</td><td>修改收款账号成功！</td><td></td></tr>
  </tbody>
</table>
				 </div>
			</div>
			
			<div class="docs-mod" id="nav_7">
				<div class="docs-hd">
					[API]查询结算记录
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/api.php?act=settle&amp;pid={商户ID}&amp;key={商户密钥}&amp;page={页码}&amp;limit={每页数量}
					</div>
					<div class="docs-sub">
						请求参数说明：
					</div>
					<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>操作类型</td><td>act</td><td>是</td><td>String</td><td>settle</td><td>此API固定值</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>商户密钥</td><td>key</td><td>是</td><td>String</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td></tr>
  <tr><td>查询订单数量</td><td>limit</td><td>否</td><td>Int</td><td>20</td><td>返回的订单数量，最大50</td></tr>
  <tr><td>页码</td><td>page</td><td>否</td><td>Int</td><td>1</td><td>当前查询的页码</td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>返回信息</td><td>msg</td><td>String</td><td>查询结算记录成功！</td><td></td></tr>
  <tr><td>结算记录</td><td>data</td><td>Array</td><td>结算记录列表</td><td></td></tr>
  </tbody>
</table>
				 </div>
			</div>
			<div class="docs-mod" id="nav_8">
				<div class="docs-hd">
					[API]查询单个订单
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
					URL地址：http://<?php echo $conf['local_domain']?>/api.php?act=order&amp;pid={商户ID}&amp;key={商户密钥}&amp;out_trade_no={商户订单号}
					</div>
					<div class="docs-sub">
						请求参数说明：
					</div>
					<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>操作类型</td><td>act</td><td>是</td><td>String</td><td>order</td><td>此API固定值</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>商户密钥</td><td>key</td><td>是</td><td>String</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td><td></td></tr>
  <tr><td>商户订单号</td><td>out_trade_no</td><td>是</td><td>String</td><td>20160806151343349</td><td></td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>返回信息</td><td>msg</td><td>String</td><td>查询订单号成功！</td><td></td></tr>
  <tr><td>易支付订单号</td><td>trade_no</td><td>String</td><td>2016080622555342651</td><td><?php echo $conf['web_name'];?>订单号</td></tr>
  <tr><td>商户订单号</td><td>out_trade_no</td><td>String</td><td>20160806151343349</td><td>商户系统内部的订单号</td></tr>
  <tr><td>支付方式</td><td>type</td><td>String</td><td>alipay</td><td>alipay:支付宝,tenpay:财付通,<br/>qqpay:QQ钱包,wxpay:微信支付</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>Int</td><td>1001</td><td>发起支付的商户ID</td></tr>
  <tr><td>创建订单时间</td><td>addtime</td><td>String</td><td>2016-08-06 22:55:52</td><td></td></tr>
  <tr><td>完成交易时间</td><td>endtime</td><td>String</td><td>2016-08-06 22:55:52</td><td></td></tr>
  <tr><td>商品名称</td><td>name</td><td>String</td><td>VIP会员</td><td></td></tr>
  <tr><td>商品金额</td><td>money</td><td>String</td><td>1.00</td><td></td></tr>
  <tr><td>支付状态</td><td>status</td><td>Int</td><td>0</td><td>1为支付成功，0为未支付</td></tr>
  </tbody>
</table>
					
				 </div>
			</div>
			<div class="docs-mod" id="nav_9">
				<div class="docs-hd">
					[API]批量查询订单
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/api.php?act=orders&amp;pid={商户ID}&amp;key={商户密钥}&amp;page={页码}&amp;limit={每页数量}
					</div>
					<div class="docs-sub">
						请求参数说明：
					</div>
					<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>操作类型</td><td>act</td><td>是</td><td>String</td><td>orders</td><td>此API固定值</td></tr>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>商户密钥</td><td>key</td><td>是</td><td>String</td><td>89unJUB8HZ54Hj7x4nUj56HN4nUzUJ8i</td><td></td></tr>
  <tr><td>查询订单数量</td><td>limit</td><td>否</td><td>Int</td><td>20</td><td>返回的订单数量，最大50</td></tr>
  <tr><td>页码</td><td>page</td><td>否</td><td>Int</td><td>1</td><td>当前查询的页码</td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>返回信息</td><td>msg</td><td>String</td><td>查询结算记录成功！</td><td></td></tr>
  <tr><td>订单列表</td><td>data</td><td>Array</td><td></td><td>订单列表</td></tr>
  </tbody>
</table>
				 </div>
			</div>


			<div class="docs-mod" id="nav_10">
				<div class="docs-hd">
				[API]二维码下单接口
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						此接口可用于服务器后端发起支付请求，会返回支付二维码链接
					</div>
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/qrcode.php?pid={商户ID}&amp;type={支付方式}&amp;out_trade_no={商户订单号}&amp;notify_url={服务器异步通知地址}&amp;name={商品名称}&amp;money={金额}&amp;sign={签名字符串}&amp;sign_type=MD5
					</div>
			 </div>
			</div>
<br>
			<div class="docs-mod" id="nav_11">
				<div class="docs-hd">
				发起支付请求
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						URL地址：http://<?php echo $conf['local_domain']?>/submit.php
					</div>
					<div class="docs-sub">
						POST数据：pid={商户ID}&amp;type={支付方式}&amp;out_trade_no={商户订单号}&amp;notify_url={服务器异步通知地址}&amp;return_url={页面跳转通知地址}&amp;name={商品名称}&amp;money={金额}&amp;sitename={网站名称}&amp;sign={签名字符串}&amp;sign_type=MD5
					</div>
								<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>支付方式</td><td>type</td><td>是</td><td>String</td><td>alipay</td><td>qqpay:QQ钱包,wxpay:微信支付</td></tr>
  <tr><td>商户订单号</td><td>out_trade_no</td><td>是</td><td>String</td><td>20160806151343349</td><td></td></tr>
  <tr><td>异步通知地址</td><td>notify_url</td><td>是</td><td>String</td><td>http://<?php echo $conf['local_domain']?>/notify_url.php</td><td>服务器异步通知地址</td></tr>
  <tr><td>商品名称</td><td>name</td><td>是</td><td>String</td><td>VIP会员</td><td></td></tr>
  <tr><td>商品金额</td><td>money</td><td>是</td><td>String</td><td>1.00</td><td></td></tr>
  <tr><td>签名字符串</td><td>sign</td><td>是</td><td>String</td><td>202cb962ac59075b964b07152d234b70</td><td>签名算法与<a href="https://doc.open.alipay.com/docs/doc.htm?treeId=62&articleId=104741&docType=1" target="_blank">支付宝签名算法</a>相同</td></tr>
  <tr><td>签名类型</td><td>sign_type</td><td>是</td><td>String</td><td>MD5</td><td>默认为MD5</td></tr>
  </tbody>
</table>
<p>返回结果：</p>
<table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>返回状态码</td><td>code</td><td>Int</td><td>1</td><td>1为成功，其它值为失败</td></tr>
  <tr><td>返回信息</td><td>msg</td><td>String</td><td>下单成功！</td><td></td></tr>
  <tr><td>订单号</td><td>trade_no</td><td>String</td><td>20160806151343349</td><td></td></tr>
  <tr><td>商户订单号</td><td>out_trade_no</td><td>String</td><td>20160806151343349</td><td></td></tr>
  <tr><td>二维码链接</td><td>code_url</td><td>String</td><td>weixin://wxpay/bizpayurl?pr=04IPMKM</td><td></td></tr>
  </tbody>
</table>
			
				 </div>
			</div>


				<div class="docs-mod" id="nav_12">
				<div class="docs-hd">
				支付结果通知
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						通知类型：服务器异步通知（notify_url）、页面跳转通知（return_url）
					</div>
					<div class="docs-sub">
						请求方式：GET
					</div>
								<table class="table table-bordered table-hover">
  <table class="table table-bordered table-hover">
  <thead><tr><th>字段名</th><th>变量名</th><th>必填</th><th>类型</th><th>示例值</th><th>描述</th></tr></thead>
  <tbody>
  <tr><td>商户ID</td><td>pid</td><td>是</td><td>Int</td><td>1001</td><td></td></tr>
  <tr><td>易支付订单号</td><td>trade_no</td><td>是</td><td>String</td><td>20160806151343349021</td><td><?php echo $conf['web_name'];?>订单号</td></tr>
  <tr><td>商户订单号</td><td>out_trade_no</td><td>是</td><td>String</td><td>20160806151343349</td><td>商户系统内部的订单号</td></tr>
  <tr><td>支付方式</td><td>type</td><td>是</td><td>String</td><td>alipay</td><td>alipay:支付宝,tenpay:财付通,<br/>qqpay:QQ钱包,wxpay:微信支付,<br/>alipaycode:支付宝扫码,jdpay:京东支付</td></tr>
  <tr><td>商品名称</td><td>name</td><td>是</td><td>String</td><td>VIP会员</td><td></td></tr>
  <tr><td>商品金额</td><td>money</td><td>是</td><td>String</td><td>1.00</td><td></td></tr>
  <tr><td>支付状态</td><td>trade_status</td><td>是</td><td>String</td><td>TRADE_SUCCESS</td><td></td></tr>
  <tr><td>签名字符串</td><td>sign</td><td>是</td><td>String</td><td>202cb962ac59075b964b07152d234b70</td><td>签名算法与<a href="https://doc.open.alipay.com/docs/doc.htm?treeId=62&articleId=104741&docType=1" target="_blank">支付宝签名算法</a>相同</td></tr>
  <tr><td>签名类型</td><td>sign_type</td><td>是</td><td>String</td><td>MD5</td><td>默认为MD5</td></tr>
  </tbody>
</table>
			
				 </div>
			</div>
			<div class="docs-mod" id="doc10">
				<div class="docs-hd">
					SDK下载
				</div>
				<div class="docs-bd">
					<div class="docs-sub">
						<a href="/SDK.zip" target="_blank" style="color:#6e94ff">点击下载</a>
					</div>
				 </div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript" src="/template/moban1/kuyun/doc/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/template/moban1/kuyun/doc/js/wow.min.js"></script>
<script type="text/javascript" src="/template/moban1/kuyun/doc/js/script.js"></script>
</div>

</section>
<footer class="footer">
<div class="container">
<div class="row footxxdiv">
<div class="col-lg-8 col-xs-12">
<img src="/template/moban1/kuyun/image/logob.png" class="flap" data-ani="fadeInLeft" data-delay=""  />
<dd class="ksdhdd flap" data-ani="fadeInUp" data-delay="">
 
 
<dd class="ksdhdd flap" data-ani="fadeInUp" data-delay="">
<b>舞弊举报监察中心:</b>
<a class="dwCommonFooter__txt">举报邮箱：<?php echo $conf['email']?></a>
 
</dd>
</dd>
<a target="_blank" href="https://v.pinpaibao.com.cn/cert/site/?site=www.juzipay.cn&at=realname"><img src="/template/moban1/kuyun/image/aqkx_124x47.png"></img></a>
<a target="_blank" href="https://www.yunaq.com/"><img src="/template/moban1/kuyun/image/sm_124x47.png"></img></a>
<!--<a id="jsl_speed_stat2" href="http://www.yunaq.com/#zid=5c6c067e796db4154a60cbb3" target="_blank">知道创宇云安全</a> <script src="//static.yunaq.com/static/js/stat/picture2_stat.js" charset="utf-8" type="text/javascript"></script>-->
</div>
<div class="col-lg-4 col-xs-12">
<dd class="lxfsdd flap" data-ani="fadeInRight" data-delay="0.5s">
<b>联系方式：</b><br/>
 
 <p>公司：西安市碑林区余生网络信息服务部</p>
<p>电话：<?php echo $conf['phone']?></p>
<p>网址：<?php echo $conf['local_domain']?></p>
<p>邮箱：<?php echo $conf['email']?></p>
</dd>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container clearfix">
<div class="footer-info pull-right flap" data-ani="fadeInUp" data-delay="0.5s">
<div class="footer-login">
<a class="lonin-btn" href="../../user/login/">登录</a>&nbsp;/&nbsp;
<a class="register-btn" href="../../user/reg/">注册</a>
</div>
</div>
<div class="pull-left flap" data-ani="fadeInUp" data-delay="0.5s" style="width:auto;">
<p>咨询热线：<?php echo $conf['phone']?></p>
<p><?php echo $conf['ban']?> <span class="dwCommonFooter__split"></p>
</div>
</div>
</div>

</footer>
<script src="/template/moban1/kuyun/js/jquery_1107.js"></script>
<script src="/template/moban1/kuyun/js/jquery.lazyload_1107.js"></script>
<script src="/template/moban1/kuyun/js/my_js_1107.js"></script>
<script type="text/javascript" src="/template/moban1/kuyun//doc/js/wow.min.js"></script>
<script src="/template/moban1/kuyun/js/swiper.animate1.0.2.min.js"></script>
 <div class="side-contact fontyh hidden-xs" id="side-go-top" style="display: block;">
<div class="qq-item"> <i>&nbsp;</i> <span>QQ咨询</span>
  <p style="display: none;"><em></em> 
  <a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $conf['web_qq']?>&site=qq&menu=yes" target="_blank">商户接入</a> 
  <a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $conf['web_qq']?>&site=qq&menu=yes" target="_blank">合作洽谈</a> 
  <a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $conf['web_qq']?>&site=qq&menu=yes">技术支持</a> 
  <!--<a href="<?php echo $conf['qun']?>" target="_blank"><?php echo $conf['web_name']?>群</a> -->

  </p>
</div>
<div class="phone-item"> <i>&nbsp;</i> <span>招商电话</span>
  <p style="height: 170px !important; display: none;"><em></em>招商电话<br><strong><?php echo $conf['phone']?></strong><br>
    （上午9:00-下午17:30）<br>仅接受商户接入类问题的<br>咨询。其他事宜可联系在<br>线客服</p>
</div>
<div class="weixin-item"> <a target="_blank" href="<?php echo $conf['qun']?>"><i>&nbsp;</i> <span>QQ群</span></a>
   
</div>
<div class="gotop-item"> <i>&nbsp;</i> <span>返回顶部</span> </div>
</div>




<style>

/*客服*/
.side-contact{position:fixed;right:10px;bottom:126px;display:none;width:70px;height:260px;z-index:200;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.3);background:#f2f2f2;text-align:center}
.side-contact span,.side-contact i{display:block}
.side-contact span{font-size:12px;color:#666}
.side-contact div:hover span{color:#17a1e6}
.side-contact i{width:35px;height:32px;margin:0 auto}
.side-contact p{position:absolute;left:0;top:0;display:none;background:#17a1e6;color:#FFF;font-size:14px}
.side-contact p strong{font-size:22px;font-weight:normal}
.side-contact p em{position:absolute;right:-11px;display:block;width:11px;height:11px;background:url(/template/moban1/kuyun/images/rightqq/icon_tips_arrow.png) no-repeat 0 0}
.side-contact .qq-item{width:100%;height:59px;padding-top:10px;border-bottom:1px solid #f2f2f2;border-radius:8px 8px 0 0;background:#FFF;cursor:pointer}
.side-contact .qq-item i{background:url(/template/moban1/kuyun/images/icon_contact.png) no-repeat 0 0}
.side-contact .qq-item i{background:url(/template/moban1/kuyun/images/icon_contact.png) no-repeat -32px 0}
.side-contact .qq-item p{left:-140px;top:0px;width:140px;padding:5px 0;border-radius:8px}
.side-contact .qq-item p em{top:30px}
.side-contact .qq-item p a{color:#fff;float:left;border-bottom:#3AABE4 solid 1px;margin:0 20px;width:100px;font-size:14px;padding:12px 0 0 30px;height:52px;text-align:left;background:url(/template/moban1/kuyun/images/qq.png) no-repeat;background-position:0 10px;}
.side-contact .qq-item p a:hover{color:#F1F6F9;text-decoration:none;}
.side-contact .phone-item{width:100%;height:59px;padding-top:10px;border-bottom:1px solid #f2f2f2;background:#FFF;cursor:default}
.side-contact .phone-item i{background:url(/template/moban1/kuyun/images/icon_contact.png) no-repeat 2px -32px}
.side-contact .phone-item i{background:url(/template/moban1/kuyun/images/icon_contact.png) no-repeat -30px -32px}
.side-contact .phone-item p{left:-180px;top:70px;width:170px;height:70px;line-height:22px;padding-top:12px;border-radius:8px}
.side-contact .phone-item p em{top:30px}
.side-contact .weixin-item{width:100%;height:59px;padding-top:10px;background:#FFF;cursor:default}
.side-contact .weixin-item i{background:url(/template/moban1/kuyun/images/icon_contact.png) no-repeat 2px -64px}
.side-contact .weixin-item i{background:url(/template/moban1/kuyun/images/icon_contact.png) no-repeat -30px -64px}
.side-contact .weixin-item p{left:-130px;top:98px;width:120px;height:140px;line-height:22px;padding-top:11px;font-size:14px;border-radius:8px}
.side-contact .weixin-item p img{width:90px;height:90px;margin-top:10px}
.side-contact .weixin-item p em{top:72px}
.side-contact .gotop-item{width:100%;padding-top:10px;cursor:pointer}
.side-contact .gotop-item i{width:16px;height:16px}
.side-contact .gotop-item i{background:url(/template/moban1/kuyun/images/icon_top_arrow.png) no-repeat 0 0}
.side-contact .gotop-item:hover i{background:url(/template/moban1/kuyun/images/icon_top_arrow.png) no-repeat -18px 0}
.side-contact .gotop-item span{padding:3px 0 0 0;color:#999}

</style>

<script type="text/javascript">
//侧边栏联系我们
if ($(window).scrollTop()>=0){
    $("#side-go-top").fadeIn(500);
}
$("#side-go-top .gotop-item").click(function(){
    $('body,html').animate({scrollTop:0},300);
    return false;
});
$(window).scroll(function(){
    if ($(window).scrollTop()>=0)
    {
        $("#side-go-top").fadeIn(500);
    }
    else
    {
        $("#side-go-top").fadeOut(500);
    }
});
//侧边栏效果
$('.side-contact .qq-item,.side-contact .phone-item,.side-contact .weixin-item').hover(function(){
    $(this).find('p').show();
},function(){
    $(this).find('p').hide();
});
 
function checkChar(e){
    e = window.event || e;
    var code = e.keyCode || e.which;
    var reg = /[\\\/:\*\?"\<\>\|]/;// 禁止 \/:*?"<>|
    if(reg.test(String.fromCharCode(code))){
        if(window.event){
            e.returnValue = false;
        }else{
            e.preventDefault();
        }
    }
}
</script>
<script>
go=function(index){
  $('.docs-nav li').removeClass('on');
  $('#nav_' + index).parent().addClass('on');
  var top = $('#doc' + index).offset().top;
  $('html, body').animate({
    scrollTop: top
  }, 500)
}
</script>


</body>
</html>